package com.online.dao.user;

import com.online.pojo.User;
import com.online.pojo.UserPermission;
import com.online.pojo.menu;

import javax.swing.text.StyledEditorKit;
import java.awt.*;
import java.sql.Connection;
import java.sql.SQLException;
import java.util.List;

public interface UserDao {
    //得到要登陆的用户   获取想要注册商家的人
    public User getLoginUser(User user,String name);
    //注册用户
    public boolean insertUser( String number,String name, String pwd);
    //修改权限
    public boolean update(String name) throws SQLException;
    //
    public List<menu> select(List<menu> list) throws SQLException;
    //充值
    public boolean updateAccount(String name,double account) throws SQLException;
    public boolean updateaccount(String name,double price) throws SQLException;


}
